package com.pengtu.entity.asset.book;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.pengtu.entity.IdEntity;

@Entity
@Table(name = "T_ASST_BK_LEND")
public class BkLend extends IdEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private BkSn bksn;             //图书信息
	private String lendPerson;                        //借阅者
	private Date lendDate;                            //借阅时间
	private Date preparationAlsoDate;                 //预备归还时间
	private Date returnDate;                          //归还时间 
	private String subscriber;                        //登记人
	private String status;                            //状态
	private String remark;                            //备注
	
	
	@ManyToOne(cascade = {CascadeType.ALL})
	@JoinColumn(name = "BOOKSNID")
	public BkSn getBksn() {
		return bksn;
	}

	public void setBksn(BkSn bksn) {
		this.bksn = bksn;
	}
	
	@Column(name = "LENDPERSON")
	public String getLendPerson() {
		return lendPerson;
	}

	public void setLendPerson(String lendPerson) {
		this.lendPerson = lendPerson;
	}

	@Column(name = "LENDDATE")
	@Temporal(TemporalType.DATE)
	public Date getLendDate() {
		return lendDate;
	}

	public void setLendDate(Date lendDate) {
		this.lendDate = lendDate;
	}

	@Column(name="PREPARATIONALSODATE")
	@Temporal(TemporalType.DATE)
	public Date getPreparationAlsoDate() {
		return preparationAlsoDate;
	}

	public void setPreparationAlsoDate(Date preparationAlsoDate) {
		this.preparationAlsoDate = preparationAlsoDate;
	}

	@Column(name = "RETURNDATE")
	@Temporal(TemporalType.DATE)
	public Date getReturnDate() {
		return returnDate;
	}

	public void setReturnDate(Date returnDate) {
		this.returnDate = returnDate;
	}

	@Column(name = "SUBSCRIBER")
	public String getSubscriber() {
		return subscriber;
	}

	public void setSubscriber(String subscriber) {
		this.subscriber = subscriber;
	}

	@Column(name = "STATUS")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Column(name="REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public BkLend() {
		super();
	}

}
